import Layout from "@/layouts/index.vue"
import Main from "@/layouts/components/main.vue"
export default [
  {
    path: "/courseMain",
    name: "courseMain",
    meta: {
      icon: "icon-gongzuotai",
      title: "课程管理",
    },
    component: Layout,
    redirect: "/course",
    children: [
      {
        path: "/courseManagement",
        name: "courseManagement",
        redirect: "/course",
        meta: {
          title: "课程管理",
        },
        component: Main,
        children: [
          {
            path: "/course",
            name: "course",
            meta: {
              title: "课程管理",
              hidden: true,
            },
            component: import("@/views/courseManagement/course/list/index.vue"),
          },
        ],
      },
      {
        path: "/courseClassificationManagement",
        name: "courseClassificationManagement",
        redirect: "/courseClassification",
        meta: {
          title: "课程分类管理",
        },
        component: Main,
        children: [
          {
            path: "/courseClassification",
            name: "courseClassification",
            meta: {
              hidden: true,
              title: "课程分类管理",
            },
            component: import("@/views/courseManagement/courseClassification/list/index.vue"),
          },
        ],
      },
      {
        path: "/topicManagement",
        name: "topicManagement",
        redirect: "/topic",
        meta: {
          title: "外化课题管理",
        },
        component: Main,
        children: [
          {
            path: "/topic",
            name: "topic",
            meta: {
              title: "外化课题管理",
            },
            component: import("@/views/courseManagement/topic/index.vue"),
          },
        ],
      },
      {
        path: "/enrollmentRulesManagement",
        name: "enrollmentRulesManagement",
        redirect: "/enrollmentRules",
        meta: {
          title: "招生规则",
        },
        component: Main,
        children: [
          {
            path: "/enrollmentRules",
            name: "enrollmentRules",
            meta: {
              title: "招生规则",
              hidden: true,
            },
            component: import("@/views/courseManagement/enrollmentRules/index.vue"),
          },
        ],
      },
    ],
  },
]
